﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using LinFu.IoC.Configuration;
using LinFu.IoC.Interfaces;
using NUnit.Framework;

namespace CoreEx.DynamicInvoker.Tests
{
    public class PerformanceTestClass
    {
        private static readonly SortedDictionary<int,string> _cache = new SortedDictionary<int, string>();
        private static readonly ArrayList _list = new ArrayList();
        private static readonly Hashtable _table = new Hashtable();
        private static readonly List<int> _genericList = new List<int>();
        

        public void InstanceMethodWithBoxedArgument(int value)
        {
            
        }

        public void InstanceMethod()
        {
            
        }


        public void TestMethod(MethodInfo value)
        {
            //if (!_cache.ContainsKey(value.GetHashCode()))
            //    _cache.Add(value.GetHashCode(), string.Empty);

            //if (_list.Contains(value))
            //    _list.Add(value);

            if (!_genericList.Contains(value.GetHashCode()))
                _genericList.Add(value.GetHashCode());

            //if (!_table.ContainsKey(value))
            //    _table.Add(value,string.Empty);

        }

    }
}
